<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1.0,user-scalable=0">
    <meta content="telephone=no" name="format-detection" />
    <meta name="description" content="">
	<meta name="keywords" content="">
    <title>知识库-评论</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css">
    <link rel="stylesheet" type="text/css" href="css/global.css">
    <link rel="stylesheet" type="text/css" href="css/media.css">
</head>
<body id="app">
    <!-- 头部 -->
    <header class="header">
        <a href="javascript:;" title="返回" class="icon back" @click="back();"></a>
        <h1>评论</h1>
    </header>

    <!-- 评论 -->
    <section class="padT23 padB23 borderTS" v-cloak>
    	<ul id="">
			<li class="pad24 marB12 bgff borderB answer" v-for="info in data">
				<a href="javascript:void(0);">
					<div class="clearfix line95">
						<img v-bind:src = info.headPic class="fl borderRadius wh45">
						<span class="db fl marL24 font20 color72">{{info.userName}}<em class="colorB">(LV{{info.level}})</em></span>
						<span class="fr font20 colorb6">{{info.commentDate}}</span>
					</div>
					<span class="db marT24 font24 color21">
						{{info.comment|decodeURIComponent}}
					</span>
				</a>
			</li>
            <!-- <template v-if="noList" v-cloak>
                没有数据
                <div class="noneCont">
                    <img src="images/collNone.png" class="noneImg" />
                    <span class="db desc">暂时没有评论</span>
                </div>
            </template> -->
		</ul>
        <ul v-show="!data.length>0&&noList" v-cloak>
            <li>
                <!-- 没有数据 -->
                <div class="noneCont">
                    <img src="images/collNone.png" class="noneImg" />
                    <span class="db desc">暂时没有数据</span>
                </div>
            </li>
        </ul>
		<a href="javascript:void(0);" @click="addComment();return false;" class="btnB375">我来评论</a>
    </section>

    <script type="text/javascript" src="js/lib/jquery.min.js"></script>
    <script type="text/javascript" src="js/lib/vue.js"></script>

    <script type="text/javascript" src="js/lib/global.js"></script>
    <script type="text/javascript" src="js/app.js"></script>
    <script type="text/javascript" src="js/scrollbar.js"></script>
    <script type="text/javascript" src="js/lib/common.js"></script>
    <script type="text/javascript" src="js/articleComment.js"></script>

    <script type="text/javascript">
        /*if(window.localStorage){
            var loca = window.location;
            var arr = [];
            window.localStorage.setItem('prevPage',loca.pathname+loca.search);
        }*/
    </script>
    
</body>
</html>